//
//  RelatedDishData.m
//  __PRODUCTNAME__
//
//  Created by LL.F on 16/09/16
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "RelatedDishData.h"
#import "RelatedDishSecData.h"

@implementation RelatedDishData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [RelatedDishSecData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<RelatedDishSecData *>  *infoArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            RelatedDishSecData *infoData = [RelatedDishSecData modelWithDic:dic];
            [infoArray addObject:infoData];
        }
        _data = infoArray;
    }
}
@end
